package facade;
import java.io.Serializable;
import javax.swing.JTextArea;

public class SerializedMessage implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String message;
	private boolean Joinflag;
	private boolean Editingflag;

    public SerializedMessage(JTextArea message,boolean Joinflag,boolean Editingflag) {   
    	this.message = message.getText();
    	this.Joinflag=Joinflag;
    	this.Editingflag=Editingflag;
    }

    public String getMessage(){
        return message;
}
    public boolean getJoinflag(){
		return Joinflag;
    	
    }
    public boolean getEditingflag(){
    	return Editingflag;
    }
}